package com.example.springboot.config;

import java.util.Map;

public class DaoProvider {
    //admin_role
    public String admin_roleWhere(Map<String, Object> map) {
        String sql = "SELECT * FROM admin_role";
        String name=map.get("name")!=null?map.get("name").toString():null;
        if(name!=null){
            sql += " where ";
            sql +="name LIKE  '%"+name+"%'";
        }
        return sql;
    }


}
